package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.mongo.Video;
import com.tanhua.model.mongo.VideoComment;
import com.tanhua.model.vo.PageResult;
import org.bson.types.ObjectId;

import java.util.List;

public interface VideoCommentApi {

    //发布评论，并获取评论数量
    Integer save(VideoComment videoComment);

    //分页查询
    List<VideoComment> findVideos(String videoId, CommentType comment, Integer page, Integer pagesize);

    //判断comment数据是否存在
    Boolean hasComment(String movementId, Long userId, CommentType like);

    //删除comment数据
    Integer delete(Comment comment);
    //评论点赞
    Integer findCommentsLike(String id);
    //取消评论点赞
    Integer commentDislike(String id);
}
